package org.example.web.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.web.domain.Emp;

import java.util.Date;
import java.util.List;

@Mapper
public interface EmpMapper {
    List<Emp> pageQuery(String name, Integer gender, Date begin, Date end);

    void deleteById(List ids);

    void add(Emp emp);

    Emp getById(Long id);

    void update(Emp emp);

    Emp getUserByUserNameAndPassword(Emp emp);

    void deleteByDeptId(String id);
}
